﻿using Sidvall.Serialization;

namespace Sidvall.Net
{
	public class SoapClientSettings
	{
		#region Public Members

		public string BaseAddress { get; set; }

		#region IsEqual

		public bool IsEqual(SoapClientSettings obj)
		{
			return IsEqual(this, obj);
		}

		#endregion
		#region IsEqual - Static

		public static bool IsEqual(SoapClientSettings item1, SoapClientSettings item2)
		{
			if (item1 == null)
			{
				if (item2 == null)
					return true;
				else
					return false;
			}
			else if (item2 == null)
				return false;
			if (!item1.BaseAddress.Equals(item2.BaseAddress, true, System.StringComparison.OrdinalIgnoreCase))
				return false;
			return true;
		}

		#endregion

		#endregion
		#region Constructors

		public SoapClientSettings()
		{
		}

		#endregion
	}
}
